package dancespeedymodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceRoseRankActivity 魅力值榜活动信息
type DanceRoseRankActivity struct {
	Id              int64          `gorm:"primaryKey;autoIncrement;comment:id" json:"id"`
	Icon            string         `json:"icon" gorm:"column:icon;type:varchar(256);not null;default:'';comment:icon"`
	RuleIcon        string         `json:"ruleIcon" gorm:"column:rule_icon;type:varchar(256);not null;default:'';comment:规则图"`
	Name            string         `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment:活动名"`
	StartTime       int64          `json:"startTime" gorm:"column:start_time;type:bigint;default:0;not null;comment:开始时间"`
	EndTime         int64          `json:"endTime" gorm:"column:end_time;type:bigint;default:0;not null;comment:结束时间"`
	IsUp            int            `json:"isUp" gorm:"column:is_up;type:tinyint;default:0;not null;comment:是否上架 0:未上架 1:上架中"`
	Remark          string         `json:"remark" gorm:"column:remark;type:varchar(256);not null;default:'';comment:备注"`
	RoseValue       int64          `json:"roseValue" gorm:"column:rose_value;type:bigint;default:0;not null;comment:玫瑰价值(100表示:100礼物价值/1玫瑰)"`
	InitSendRoseNum int64          `json:"initSendRoseNum" gorm:"column:init_send_rose_num;type:bigint;default:0;not null;comment:初始赠送玫瑰数量"`
	CreatedId       int64          `json:"created_id" gorm:"column:created_id;type:bigint;default:0;not null;comment:创建人id"`
	UpdateId        int64          `json:"update_id" gorm:"column:update_id;type:bigint;default:0;not null;comment:更新人id"`
	CreatedAt       time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt       time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt       gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
